package java_learn.java_jinjie.ThreadAndException;

/**
 * 线程的名称:
 * 主线程: main
 * 新线程: Thread-0,Thread-1,Thread-2
 *
 * @Author: 李浩然
 * @Date: 2020/12/15 2:27 上午
 */
public class DemoGetThreadName {
    public static void main(String[] args) {
        Thread mt = new MyThread();
        mt.start();
        new MyThread().start();
        new MyThread().start();
        System.out.println(Thread.currentThread().getName());
    }
}
